const { http } = uni.$u

export const homeIndex = (data) => http.get('https://ff-cloud.oss-cn-beijing.aliyuncs.com/app/json/home.json', data)
export const workbenchIndex = (data) => http.get('https://ff-cloud.oss-cn-beijing.aliyuncs.com/app/json/workbench.index.json', data)

// 模板- 商品
export const templateClass = (data) => http.get('https://ff-cloud.oss-cn-beijing.aliyuncs.com/app/json/classify.data.json', data)


export const ldtList = (data) => http.get('/wx/ldt/template/list', data)
export const ldtInfo = (data) => http.get('/wx/ldt/form/info/current', data)
export const ldtForm = (params, config = {}) => http.post('/wx/ldt/form/info', params, config)


export const poetryIndex = (data) => http.get('https://ff-cloud.oss-cn-beijing.aliyuncs.com/app/json/poetry.data.json', data)
export const poetryList = (data) => http.get('https://ff-cloud.oss-cn-beijing.aliyuncs.com/app/json/poetry.list.json', data)
export const poetryDetail = (data) => http.get('api/gs/jr', data)
